//
//  NSString+Ex.m
//  CalCounter
//
//  Created by Toanpro on 9/10/13.
//  Copyright (c) 2013 Le thanh Lam. All rights reserved.
//

#import "NSString+Ex.h"

@implementation NSString (Ex)
- (BOOL)isMatchRegex:(NSString *)regex{
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"self matches %@", regex];
    return [predicate evaluateWithObject:self];
}
@end
